# on Franklin, type the following commands: 
#  > module swap PrgEnv-pgi PrgEnv-cray/1.0.1
#  > module swap cce cce/7.3.2
#  > module load bupc

CC = CC -O3
UPCC = upcc -O

TARGETS=serial parallel parallel-new

all: $(TARGETS)

serial: serial.cpp
	$(CC) -o $@ $^

parallel: parallel.upc
	$(UPCC) -o $@ $^

parallel-new: parallel-new.upc
	$(UPCC) -o $@ $^

clean:
	rm -f *.o $(TARGETS)